<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <script src="/static/layui/layui.js"></script>
    <script src="/static/jquery-3.6.0.js"></script>
    <style>
        .layui-form {
            margin-top: 300px;
            margin-left: 500px;
        }
        .layui-input {
            width: 200px;
        }
    </style>
</head>
<body>
<form class="layui-form" action="" method="post">
  <div class="layui-form-item form-item">
    <label class="layui-form-label">用户名</label>
    <div class="layui-input-block">
      <input type="text" name="username" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item form-item">
    <label class="layui-form-label">密码框</label>
    <div class="layui-input-inline">
      <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
    </div>
  </div>
    <div class="form-item"><input type="submit" class="layui-btn">
    <a href="/login" class="layui-btn">登录</a></div>

    </form>
<script>
    layer.open(
        {title: '错误',
        content: '用户已存在'}
    )
</script>
</body>
</html>